package com.remedios.pojo;

import com.remedios.myAnnotation.MyAutoWired;
import com.remedios.myAnnotation.MyComponent;
import com.remedios.myAnnotation.MyValue;

@MyComponent
public class BeanB {
    //绝对自律带来绝对残忍
    public void print(){
        System.out.println("百年之后没有你也没有我");
    }

    public String getName() {
        return name;
    }

    @MyAutoWired
   @MyValue("${猪脑过载.name}")
    private String name;

    public Integer getAge() {
        return age;
    }

    @MyValue("${猪脑过载.age}")
    @MyAutoWired
    private Integer age;
}
